﻿<?php //Seyret Component v.0.3//
/**
* @package Seyret
* @version 0.3
* @copyright Copyright (C) 2008 Mustafa DINDAR. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Seyret Video Component is a free software.
* See seyrettos.html for license notices and details.
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

$document = & JFactory::getDocument();
$csslink=JURI :: root()."components/com_seyret/themes/default/style/default.seyret.css";
$document->addStyleSheet($csslink);

$jslink=JURI :: root()."components/com_seyret/includes/js/mootools-1.2-core.js";
$document->addScript($jslink);
$jslink=JURI :: root()."components/com_seyret/includes/js/mootools-1.2-more.js";
$document->addScript($jslink);



$user =& JFactory::getUser();

?>

<style>

body {
background-color: white;
}
</style>



<div>
	<div style="padding:5px;">
	
<?php


if ($this->favoriteresult == "donthaverights"){

?>
		<div class="addfavvideolabel">
			<div class="addfavvideolabelinner">	
				<?php echo JText::_('You dont have rights to add favorites');?>
			</div>
		</div>
		

	
<?php

} if ($this->favoriteresult == "donthaverightstoremove"){

?>
		<div class="addfavvideolabel">
			<div class="addfavvideolabelinner">	
				<?php echo JText::_('You dont have rights for this operation');?>
			</div>
		</div>
		

	
<?php

} else if ($this->favoriteresult == "alreadyadded"){
?>
		<div class="addfavvideolabel">
			<div class="addfavvideolabelinner">	
				<?php echo JText::_('This video is already in your favorites list');?>
			</div>
		</div>

		<div style="text-align:right; padding:5px;">
			<a href="<?php echo $this->absURL("index.php?option=com_seyret&view=tools&tmpl=component&task=removefavorite&vid=".$this->videoid); ?>"><?php echo JText::_('Remove from favorites');?></a>
		</div>


<?php
} else if ($this->favoriteresult == "addednow"){
?>

		<div class="addfavvideolabel">
			<div class="addfavvideolabelinner">	
				<?php echo JText::_('This video has been added to your favorites now');?>
			</div>
		</div>

		<div style="text-align:right; padding:5px;">
			<a href="<?php echo $this->absURL("index.php?option=com_seyret&view=tools&tmpl=component&task=removefavorite&vid=".$this->videoid); ?>"><?php echo JText::_('Remove from favorites');?></a>
		</div>


<?php
} else if ($this->favoriteresult == "favoriteremoved"){
?>

		<div class="addfavvideolabel">
			<div class="addfavvideolabelinner">	
				<?php echo JText::_('This video has been from your favorites list');?>
			</div>
		</div>


<?php
}
?>	
		
	</div>
</div>